package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.dto.StoreGoodsDiscountDto;
import com.dingreading.cloud.common.util.PageUtil;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.dingreading.cloud.admin.entity.StoreGoodsDiscount;

/**
 *  服务层。
 *
 * @author Administrator
 * @since 2025-07-24
 */
public interface StoreGoodsDiscountService extends IService<StoreGoodsDiscount> {

    Page<StoreGoodsDiscountDto> pageList(PageUtil pageUtil, String keyword, Integer enabled);

    boolean updateInfo(String storeUid, Double discountRate);

    boolean updateEnabled(String storeUid, Integer enabled);

    StoreGoodsDiscountDto dtoGetByStoreUid(String storeUid);

    StoreGoodsDiscount getByStoreUid(String storeUid);

    StoreGoodsDiscount getEnabledDiscount(String storeUid);
}
